package yxy.cherry.chat.client;

import yxy.apple.protobuf.Message.Parcal;
import yxy.banana.server.internal.InternalClientHandler;
import yxy.cherry.chat.Configuration;
import yxy.cherry.chat.Reactor;

public class ClientHandler extends InternalClientHandler {

	public ClientHandler() {
		super();
	}

	@Override
	protected boolean business(Parcal parcal) throws Exception {
		Reactor.instance.station().deliver(parcal);
		return true;
	}

	@Override
	public int system() {
		return Configuration.shared().SystemID;
	}

	@Override
	public int cluster() {
		return Configuration.shared().ClusterID;
	}

}
